# 1. cmake 版本信息
cmake_minimum_required(VERSION 3.1.3)
set(CMAKE_CXX_STANDARD 17)
# 2. 声明项目名称
project(excel-test)
set(target "excel-deduplicate")
set(src_files  "")
aux_source_directory(${CMAKE_CURRENT_SOURCE_DIR}/source src_files)

# 5. 声明目标及依赖
add_executable(${target} ${src_files})

# 6. 设置头文件默认搜索路径
include_directories(${CMAKE_CURRENT_BINARY_DIR})
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/../common)
include_directories(/usr/local/include)
include_directories(/usr/include)
# 7. 设置需要连接的库
target_link_libraries(${target} -lspdlog -lfmt -lgflags -lOpenXLSX -lpugixml)
#8. 设置安装路径
INSTALL(TARGETS ${target} RUNTIME DESTINATION bin)
